package com.dhcc.DRGsHosp.web.controller;

import org.openkoala.koala.commons.InvokeResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dhcc.DRGsHosp.facade.YiBaoHomeFacade;

/**
 * 
 * @title		:YiBaoHomeController.java
 * @description	: 医保首页
 * @author		:mazhaoyan
 * @date		:2015年12月16日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014
 */
@Controller("drgsHospWebController45")
@RequestMapping("/yibaohome")
public class YiBaoHomeController {

	@Autowired
	private YiBaoHomeFacade yiBaoHomeFacade;
	
	/**
	 * 
	 * @methodname    :getHCInfoHosp
	 * @description   : 全院医保总基金信息
	 * @param         :
	 * @author        :mazhaoyan
	 * @return        :
	 * @date          :2015年12月16日
	 */
	@ResponseBody
	@RequestMapping(value = "/getHCInfoHosp", method = RequestMethod.POST)
	public InvokeResult getHCInfoHosp(String hiType,String hospCode) {
		return yiBaoHomeFacade.getHCInfoHosp(hiType,hospCode);
	}
	/**
	 * 
	 * @methodname    :getHCHistory
	 * @description   : 医院基金历史情况
	 * @param         :
	 * @author        :mazhaoyan
	 * @return        :
	 * @date          :2016年1月5日
	 */
	@ResponseBody
	@RequestMapping(value = "/getHCHistory", method = RequestMethod.POST)
	public InvokeResult getHCHistory(String hiType,String hospCode) {
		return yiBaoHomeFacade.getHCHistory(hiType, hospCode);
	}
	
	/**
	 * 
	 * @methodname    :depQuotaMonitor
	 * @description   : 科室指标监测
	 * @param         :
	 * @author        :mazhaoyan
	 * @return        :
	 * @date          :2015年12月17日
	 */
	@ResponseBody
	@RequestMapping(value = "/depQuotaMonitor", method = RequestMethod.POST)
	public InvokeResult depQuotaMonitor(String hospCode) {
		return yiBaoHomeFacade.depQuotaMonitor(hospCode);
	}
	
	
	/**
	 * 
	 *  findHospQuotaData.  
	 *  @Description：获取各个监测指标数据值
	 *  @Author LiuHongjun
	 *  @param quotaCode
	 *  @return 
	 *  @Date:2017年6月21日上午8:07:24
	 */
	@ResponseBody
	@RequestMapping(value = "/findHospQuotaData", method = RequestMethod.POST)
	public InvokeResult findHospQuotaData(String quotaCode,String hospCode) {
		return yiBaoHomeFacade.findHospQuotaData(quotaCode,hospCode);
	}
	/**
	 *  @Discription：获取医保数据的最大出院时间
	 *  @Author： liuhongjun
	 *  @param hospCode
	 *  @return
	 *  @Date:2018年7月28日上午9:44:34
	 */
	@ResponseBody
	@RequestMapping(value = "/getMaxDate")
	public String getMaxDate() {
		return yiBaoHomeFacade.getMaxDate();
	}
}
